package com.neusoft.springdemo.bean;

import org.apache.log4j.Logger;

/**
 * 
 * @author chens
 *
 */
public class Product {
	private  Logger logger = Logger.getLogger(Product.class);
	
	private User user;
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
		logger.info("setUser(User user)  ------依赖注入------");
	}

	public Product() {
		super();
		logger.info("Product()..................");
	}

	public Product(User user) {
		super();
		this.user = user;
		logger.info("Product(User user)..................");
	}

	@Override
	public String toString() {
		return "Product [logger=" + logger + ", user=" + user + "]";
	}
	
	
	
	
}
